home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Util / M / MacDOS 3.0.sit / MacDOS 3.0 ƒ / executables / batches / listfile.bat < prev    next >
Encoding:
DOS Batch File  |  1993-07-30  |  256 b   |  12 lines  |  [TEXT/mDOS]

  1. @echo off
  2. ! this is a simple example of the usage of OPEN/READ/CLOSE
  3. ! type        LISTFILE aName        to list the text file named 'aName'
  4. ! It is equivalent to the standard TYPE command
  5. !
  6.     onerror DONE_LBL
  7.     open %1 id
  8.     repeat DONE_LBL
  9.     read %id%
  10. :DONE_LBL
  11.     set id=
  12.